Variable.Value[PUT]



Value(vIndex As [optional]Variant,newValue As Variant)

Parameters

vIndex As [optional]Variant
Index of an array element.

Hint: For arrays which have been created out of one variable via the "array size" property.
newValue As Variant
Value which should be set.
ED
not used
RT
avaliable

Remarks

This method can set the value of a variable.

Sample:


Sub Value()

Dim zVariables As Variables 'Object from type Variables
Dim zVariable As Variable 'Child object from type Variables

'Fill the objects
Set zVariables = thisProject.Variables
'Take the variable "test"
Set zVariable = zVariables.Item("test")
'Set the value 10 on the variable
zVariable.Value = 10

End Sub


See Also

Variable